package com.polaris.live.ui.party.music.listener

import com.polaris.live.utils.zego.media.MusicBean
import com.polaris.live.utils.zego.media.MusicPlayState
import com.polaris.live.utils.zego.media.MusicPlayType
import im.zego.zegoexpress.constants.ZegoMediaPlayerState

/**
 *
 * @author Created by 天晴 on 2024/9/18 20:39
 * @since 1.0.0
 **/
interface MediaPlayerPlayingListener {

    fun progress(millisecond: Long) {

    }

    fun switchMusic(music: MusicBean) {

    }

    fun musicState(@MusicPlayState state: Int) {

    }

    fun musicPlayType(@MusicPlayType type: Int) {

    }

    fun onMediaPlayerStateUpdate(
        state: ZegoMediaPlayerState,
        errorCode: Int,
    ) {

    }

    fun onVolumeUpdate(volume: Int) {

    }

    fun onMusicSizeUpdate(size: Int) {

    }

    fun closeMusic() {

    }
}